const getters = {
  // sidebar: (state) => state.app.sidebar,
  // device: (state) => state.app.device,

  // 因为user文件里面没有内容了 所有这里如果使用的话就会报错
  token: (state) => state.user.token,
  // avatar: state => state.user.avatar,
  // name: state => state.user.name
  //用户列表数据
  usersData: (state) => state.users.usersData,
  //根据id获取用户数据
  usersDataById: (state) => state.users.usersDataById,
  //角色列表
  RolesData: (state) => state.roles.RolesData,
  //根据id获取的角色数据
  RolesDataById: (state) => state.roles.usersDataById,
  ordersData: (state) => state.orders.ordersData,
  ordersTotal: (state) => state.orders.ordersTotal,
};
export default getters;
